package com.dingwen.treasure.mybatisplus.mapper;

import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.dingwen.treasure.model.entity.mybatisplus.SysMenu;

import java.util.List;

/**
* @author dingwen
* @description 针对表【sys_menu(菜单表)】的数据库操作Mapper
* @createDate 2022-06-20 17:18:19
* @Entity com.dingwen.treasure.mybatisplus.entity.SysMenu
*/
public interface SysMenuMapper extends BaseMapper<SysMenu> {
    /**
     * 按用户id获取系统菜单
     *
     * @param userId 用户id
     * @return {@link List}<{@link SysMenu}>
     */
    List<SysMenu> getSysMenusByUserId(Long userId);
}




